import request from '@/utils/request'

const prevUrl = '/consume/inventory/'

export default {
    list(query, pageReq) {
        return request({
            url: `${prevUrl}list`,
            method: 'post',
            data: query,
            params: pageReq
        })
    },
    inventory: function(uuid) {
        
    }
}

// 查询资产清单表列表
export function listAssetItem(query, pageReq) {
    return request({
        url: `${prevUrl}list`,
        method: 'post',
        data: query,
        params: pageReq
    })
}

// 查询资产清单表详细
export function getAssetItem(id) {
    return request({
        url: `${prevUrl}${id}`,
        method: 'get'
    })
}

// 新增资产清单表
export function addAssetItem(data) {
    return request({
        url: `${prevUrl}`,
        method: 'post',
        data: data
    })
}

// 修改资产清单表
export function updateAssetItem(data) {
    return request({
        url: `${prevUrl}`,
        method: 'put',
        data: data
    })
}

// 删除资产清单表
export function delAssetItem(id) {
    return request({
        url: `${prevUrl}${id}`,
        method: 'delete'
    })
}

// 导出资产清单表
export function exportAssetItem(query) {
    return request({
        url: `${prevUrl}export`,
        method: 'get',
        params: query
    })
}

